import request from '@/utils/request'

// 查询研究机构-规章制度列表
export function listRegulation(query) {
  return request({
    url: '/research/regulation/list',
    method: 'get',
    params: query
  })
}

// 查询研究机构-规章制度详细
export function getRegulation(ID) {
  return request({
    url: '/research/regulation/' + ID,
    method: 'get'
  })
}

// 新增研究机构-规章制度
export function addRegulation(data) {
  return request({
    url: '/research/regulation',
    method: 'post',
    data: data
  })
}

// 修改研究机构-规章制度
export function updateRegulation(data) {
  return request({
    url: '/research/regulation',
    method: 'put',
    data: data
  })
}

// 删除研究机构-规章制度
export function delRegulation(ID) {
  return request({
    url: '/research/regulation/' + ID,
    method: 'delete'
  })
}
